package com.xianggu.fallback;

import com.xianggu.common.XiangGuService;
import com.xianggu.demo.dto.UserDto;
import com.xianggu.mybatis.paging.Page;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author chengjy
 * @date 2025/3/9
 */
public class XiangGuServiceFallback implements XiangGuService {
    @Override
    public String doService(String text) {
        return "服务被降级了";
    }

    @Override
    public UserDto getUserInfo(String id) {
        return new UserDto();
    }

    @Override
    public List<UserDto> queryUserList(String condition) {
        return new ArrayList<>();
    }

    @Override
    public String saveUser(UserDto userDto) {
        return "数据新增失败啊 阿瑟";
    }

    @Override
    public Page<UserDto> getUserList(String id, int pageNum, int pageSize) {
        return null;
    }

    @Override
    public Page<UserDto> getInitList(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getUserListMap(String id, int pageNum, int pageSize) {
        return null;
    }

    @Override
    public UserDto getUserById(String id) {
        return null;
    }

    @Override
    public String updateById(UserDto userDto) {
        return null;
    }

    @Override
    public Page<UserDto> searchContidion(Map<String, Object> param) {
        return null;
    }

    @Override
    public String deleteById(String id) {
        return null;
    }
}
